package com.howie.gulimall.product.feign;

import com.howie.common.to.es.SkuEsModel;
import com.howie.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @description: 调用gulimall-search服务的远程客户端接口
 * @author: laizhenghua
 * @date: 2021/1/23 15:49
 */
@FeignClient("gulimall-search")
public interface SearchFeignService {
    @PostMapping("/search/save/product")
    public R productStatusUp(@RequestBody List<SkuEsModel> models);
}
